import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    collapse:false,

    // 用户信息
    user:{},
  },
  getters: {
  },
  mutations: {
    SET_COLLAPSE(state){
      this.state.collapse=!this.state.collapse
      console.log(state.collapse);
    },
    GETUSER(state,payload){
      state.user=payload
    }
  },
  actions: {
  },
  modules: {
  }
})
